<?php
/**
 * @Author: Marte
 * @Date:   2017-08-18 20:42:54
 * @Last Modified by:   Marte
 * @Last Modified time: 2017-08-18 21:40:26
 */
session_start();

header('Content-Type:text/html;charset=utf-8');
include "data/config_connect.php";//导入数据库

if(!isset($_SESSION['username']))
{
  echo "<script>alert('请先登录！');window.history.back();</script>";
}


?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <title>评论</title>
    <link rel="stylesheet" type="text/css" href="css/send_message.css">
    <script src="js/jquery-1.8.3.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="plug_ins/wenzi.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript">
 $(function(){
   //插件
   $(".main").myWords({   //输入框字数
        obj_opts:"textarea",
        obj_Maxnum:400,//要是只能输入140个字  那这里就是280
        obj_Lnum:".sns-num"
    });
})
</script>
</head>
<body>
<div class="main">

    <!-- <span class="aa">发表您的评论</span> -->
    <br>
    <form action='data/user/save_book_comment.php?action=write' method="post" accept-charset="utf-8">
    <input type="hidden" name="hide" value="<?php echo $_GET['id'];?>">
     <textarea name="content" rows="" class="beizhu" >您想要说点什么呢？
     </textarea>
   <p>
     <span class="sns-num">还能输入<em>210</em>个字</span>
     <input name="提交" type="submit" class="btn" value="发 布"  />
     </form>
   </p>
   <br>
   <br>
</div>

</body>
</html>
